package cn.wsn2018.tools.model.Design;

/**
 * 用户配置的协议字段类
 */
public class FieldDesign {
    private String fieldName;
    private Integer fieldLength;
    private String fieldType;
    private String fieldMeaning;
    private Integer fieldStart;
    private Integer fieldEnd;
    private String information;
    private String type;

    public FieldDesign(){

    }

    public FieldDesign(String fieldName, Integer fieldLength, String fieldType, String fieldMeaning, Integer fieldStart, Integer fieldEnd, String information, String type, String value) {
        this.fieldName = fieldName;
        this.fieldLength = fieldLength;
        this.fieldType = fieldType;
        this.fieldMeaning = fieldMeaning;
        this.fieldStart = fieldStart;
        this.fieldEnd = fieldEnd;
        this.information = information;
        this.type = type;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public Integer getFieldLength() {
        return fieldLength;
    }

    public void setFieldLength(Integer fieldLength) {
        this.fieldLength = fieldLength;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getFieldMeaning() {
        return fieldMeaning;
    }

    public void setFieldMeaning(String fieldMeaning) {
        this.fieldMeaning = fieldMeaning;
    }

    public Integer getFieldStart() {
        return fieldStart;
    }

    public void setFieldStart(Integer fieldStart) {
        this.fieldStart = fieldStart;
    }

    public Integer getFieldEnd() {
        return fieldEnd;
    }

    public void setFieldEnd(Integer fieldEnd) {
        this.fieldEnd = fieldEnd;
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }



    @Override
    public String toString() {
        return "FieldDesign{" +
                "fieldName='" + fieldName + '\'' +
                ", fieldLength=" + fieldLength +
                ", fieldType='" + fieldType + '\'' +
                ", fieldMeaning='" + fieldMeaning + '\'' +
                ", fieldStart=" + fieldStart +
                ", fieldEnd=" + fieldEnd +
                ", information='" + information + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
